#define OE PC2
#define RST PC3
#define SEL PC4
#define EN PC5
#define DIR PC6

#define MJ1 PORTC
#define MJ2 PINA
#define MJ1_EN DDRC
#define MJ2_EN DDRA

void motor_init(void);

void calculate_motor(int joystick);

void regulator(int joystick);

int16_t kvadraturteller();
